import request from '@/utils/request';


export default {
    findDoct(pageym,pagesize,name) {
        return request({
            url: `http://localhost/api/pati/doct/findDoct?pageym=${pageym}&pagesize=${pagesize}&cardid=${name}&patiname=${name}`,
            method: 'post'
        });
    },
    findDoct1(pageym,pagesize,name) {
        return request({
            url: `http://localhost/api/pati/doct/findDoct11?pageym=${pageym}&pagesize=${pagesize}&cardid=${name}&patiname=${name}`,
            method: 'post'
        });
    },
    deleteDoct(id){
        return request({
            url: `http://localhost/api/pati/doct/delDoct?id=${id}`,
            method: 'post'
        });
    },
    getListDto(){
        return request({
            url: `http://localhost/api/pati/doct/getListDto`,
            method: 'post'
        });
    },
    addDoct(data) {
        return request({
            url: `http://localhost/api/pati/doct/addDoct`,
            method: 'post',
            data
        });
    },
}